package com.bestcem.xm.qdes.mapper;

import com.bestcem.xm.component.mybatis.mapper.XmCommonMapper;
import com.bestcem.xm.qdes.entity.QdesTagRef;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author guitao.lu
 * @version V1.0
 * @date 2022/8/1
 */
@Mapper
public interface QdesTagRefMapper extends XmCommonMapper<QdesTagRef> {

    /**
     * 根据tagid批量删除标签引用Tagref
     *
     * @param ids tagids
     * @return 删除数据数
     */
    int deleteTagrefByTagIds(List<String> ids);

    /**
     * 根据orgId查询
     *
     * @param orgId orgId
     * @return 数据
     */
    List<QdesTagRef> getByOrgId(@Param("orgId") String orgId);
}
